package com.eagle.coders.core.exceptions;

/**
 * 
 * @author Anees
 *
 */
public class MaximumLengthException extends ValidationException {
	private static final long serialVersionUID = 1L;

	private Integer maxLength = Integer.MAX_VALUE;

    public MaximumLengthException() {
    }

    public MaximumLengthException(String msg) {
        super(msg);
    }

    public MaximumLengthException(Throwable cause) {
        super(cause);
    }

    public MaximumLengthException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public MaximumLengthException(String msg, String property) {
        super(msg, property);
    }

    //--------------------------------------------------------

    public MaximumLengthException(String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MaximumLengthException(String msg, String errorMessageLocation, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, errorMessageLocation, errorCode, module, subModule, msgArgs);
    }

    public MaximumLengthException(String msg, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(msg, errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MaximumLengthException(String msg, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }

    public MaximumLengthException(String msg, Throwable cause, String errorMessageLocation, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, errorCode, module, subModule, msgArgs);
    }

    public MaximumLengthException(String msg, Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, messageKey, errorCode, module, subModule, errorData,
                msgArgs);
    }

    public MaximumLengthException(String msg, Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }

    public MaximumLengthException(Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(cause, errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MaximumLengthException(Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(cause, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }
    
    public MaximumLengthException(String msg, String property, Integer maxLength) {
        super(msg, property);
        this.maxLength = maxLength;
    }

    public Integer getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(Integer maxLength) {
        this.maxLength = maxLength;
    }
}
